package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Brand;
import org.darkforest.model.BrandBean;

import java.util.List;

@DBMapper
public interface BrandMapper {
    int deleteByPrimaryKey(Integer brandId);

    int insert(Brand record);

    int insertSelective(Brand record);

    Brand selectByPrimaryKey(Integer brandId);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    List<Brand> findBrandByCondition(Brand brand);

    List<Brand> findBrandByPage(BrandBean brandBean);

    void deleteBrandByCondition(Brand brand);
}